home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Sound Cards
/
Programming Sound Cards.iso
/
sound_52
/
wact.ma
< prev
next >
Wrap
Text File
|
1995-01-01
|
873b
|
60 lines
#
# demo of action window type
#
@include /mh/wind.mh
action b = {
note C q 200
}
action a = {
patch 27
ccont w 1 10
bend w 128
note C q 100
note C q,q 100
rest w
tie w
metro 100
uptempo 1
downtempo 2
dxparam 1 2 3 4
sig 4 4
action b
}
action aa = {
note C q 120
note D q 120
note E q 120
note F q 120
note G q 120
note A q 120
note B q 120
note HC q 120
}
NOCOLS = 5
LSIZE = 5 # max label size
FSIZE = 5 # field size
riff openWindows()
int wd
void outputWindow(WDEBUG,11,0,23,60,"printf") # halfway
wd = inputMWindow(WACTION, 0, 0, 5+1, NOCOLS*FSIZE+2+LSIZE, "action", 0, 0, 0, &a)
end
vco testit()
int i
void openWindows()
for(;;)
for ( i = 0; i < 13; i++)
void printf("%d %d %d %d %d",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4])
rest w
end
end
end